<template>
  <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
    <van-swipe-item v-for="item in bannerArr">
      <img :src="item" :key="item.index" alt="">
    </van-swipe-item>
    
  </van-swipe>
  
  </template>
  
  <script setup lang="ts">
  import {defineProps} from 'vue' 

  const props = defineProps<{
    bannerArr:Array<string>
  }>()
  
  </script>
   
  <style scoped lang="scss">
    .van-swipe-item {
      img{
        width: 100%;
      }
    }
  
  </style>